package com.qf.ssm.mapper;
/*
   @author 86155
   @ClassName: com.qf.ssm.mapper.MarketingMapper
   @Description: 该类的功能描述
   @date: 2021/10/13 9:23 
*/

import com.qf.ssm.entity.Activity;
import com.qf.ssm.entity.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketingMapper {
    List<Activity> selectActivity(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("status") Integer status);

    Integer insertActivity(@Param("activity") Activity activity);

    Integer updateActivity(@Param("activity")  Activity activity);

    Integer deleteActivity(@Param("aid") Long aid);


    List<Customer> selectCustomer(@Param("startDate") String startDate,@Param("endDate") String endDate,@Param("status") Integer status);

    Integer addCustomer(@Param("customer")  Customer customer);

    Integer updateCustomer(@Param("customer")  Customer customer);

    Integer deleteCustomer(@Param("cid")  Long cid);
}
